package com.example.demo.bean;

public class ThisSystemUtil {

    public static String throwIfBlank(String message, String target) {

        if (target == null || (target.trim()).length() == 0) {
            throw new ThisSystemException(message,ErrorCode.VALUE_NULL.getStatus());
//            return new ErrorEntity(message);
        }

        return target ;
    }

    public static String $(String message, String target) {
        return throwIfBlank(message,target);
    }

}
